function toNewPage() {
    ajax.toNewPage(null, function getData(result) {
        console.log(result);
        window.location.href = '/createNewDoc'
    });
}